//
//  LSYBook.h
//  LSYReader
//
//  Created by sam on 2018/3/23.
//  Copyright © 2018年 okwei. All rights reserved.
//

#import "LSYModel.h"
#import "LSYParseModel.h"

#import "HTMLKit.h"
@interface LSYBook : LSYModel
@property (nonatomic,strong) NSString *bookAuthor;
@property (nonatomic,strong) NSString *bookCategory;
@property (nonatomic,strong) NSString *bookDesc;
@property (nonatomic,strong) NSString *bookIcon;
@property (nonatomic,strong) NSString *bookLastChapterName;
@property (nonatomic,strong) NSString *bookName;
@property (nonatomic,strong) NSString *bookUpdateTime;
@property (nonatomic,strong) NSString *bookUrl;
@property (nonatomic,strong) NSMutableArray *chapters;
@property (nonatomic,strong) LSYParseModel *rule;
@property (nonatomic,strong) NSMutableArray *rules; //备用源

+ (instancetype)book:(HTMLElement *)el rule:(LSYParseModel *)rule relativeUrl:(NSURL *)url;

- (BOOL)isTheSameBook:(LSYBook *)book;
- (void)updateBook:(LSYBook *)book;
@end
